﻿@model Dropbox.Api.Files

@{
    ViewBag.Title = "DropboxDisplay";
}

<h2>DropboxDisplay</h2>

<input type="button"  class="btn btn-small btn-primary"  value="Upload" data-bind="click:$root.createProfile" />
<hr/>
<table id="firstTable" class="table table-striped table-bordered table-condensed">
    <tr> 
        <th>Path</th>
        <th>Type</th>
        <th>Size</th>
        <th>IsDir</th>
        <th>Root</th>
        <th>MimType</th>

    </tr>
    @foreach (var file in Model.Contents)
    {
    <tbody>
        <tr>
            <td>@Html.DisplayFor(model => file.Path)</td>
            <td>@Html.DisplayFor(model => file.Icon)</td>
            <td>@Html.DisplayFor(model => file.Size)</td>
            <td>@Html.DisplayFor(model => file.IsDirectory)</td>
            <td>@Html.DisplayFor(model => file.Root)</td>
            <td>@Html.DisplayFor(model => file.MimeType)</td>

        </tr>
    </tbody>
    }
</table>

<p>

</p>


 <table id="TreeTable" class="table table-striped table-bordered table-condensed">
    <tr>
        <th>Dropbox Contents</th>
        <th>Type</th>
        <th>Size</th>
    </tr>
    <tbody>
        <tr id="MainTree">

        </tr>

    </tBody>
 </table>



<!--            <td><button class="btn btn-mini btn-success" data-bind="click: $parent.removeProfile">Download</button></td>
            <td><button class="btn btn-mini btn-info" data-bind="click: $parent.removeProfile">Copy</button></td>
            <td><button class="btn btn-mini btn-danger" data-bind="click: $parent.removeProfile">Delete</button></td> -->